﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesGLApp.DAL.MesDB
{
    [Table("excep_pic")]
    public class ExcepPicture
    {
        /// <summary>
        /// id，主键，自增长
        /// </summary>
        [Column("id"),Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id {  get; set; }


        /// <summary>
        /// 维修单ID
        /// </summary>
        [Column("repair_id")]
        public int RepairID { get; set; }


        /// <summary>
        /// 维修单单号
        /// </summary>
        [Column("repair_number")]
        public string RepairNumber { get; set; }


        /// <summary>
        /// 工单ID号
        /// </summary>
        [Column("target_id")]
        public int TargetID { get; set; }

        /// <summary>
        /// 工单单号
        /// </summary>
        [Column("prod_number")]
        public string ProdNumber { get; set; }


        /// <summary>
        /// 图片1
        /// </summary>
        [Column("pic_01")]
        public byte[] Pic01 { get; set; }

        /// <summary>
        /// 图片2
        /// </summary>
        [Column("pic_02")]
        public byte[] Pic02 { get; set; }

        /// <summary>
        /// 图片3
        /// </summary>
        [Column("pic_03")]
        public byte[] Pic03 { get; set; }

        /// <summary>
        /// 图片4
        /// </summary>
        [Column("pic_04")]
        public byte[] Pic04 { get; set; }
    }
}
